<template>
  <div class="sub-menu">
    <div class="sub-title">
      <span class="title">
        <slot name="title"></slot>
      </span>
      <span class="remove">&gt;</span>
    </div>
    <!-- 下拉 -->
    <div class="item-wrap">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'SubItem',
  props: ['data'],
}
</script>

<style lang="scss" scoped>
.sub-title {
  position: relative;
  height: 30px;
  line-height: 30px;
  // padding: 0 5px;
  .remove {
    position: absolute;
    right: 5px;
  }
}
</style>